package com.ruoyi.employer.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 货主端兑换中心对象 cargo_money
 * 
 * @author fxy
 * @date 2024-08-23
 */
public class CargoMoney extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID  */
    @Excel(name = "ID ")
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long commodityOrderId;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private String money;

    /** 订单支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date extime;

    /** 货主ID */
    @Excel(name = "货主ID")
    private Long cargoUserId;

    /** 逻辑删除 */
    private Long del;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCommodityOrderId(Long commodityOrderId) 
    {
        this.commodityOrderId = commodityOrderId;
    }

    public Long getCommodityOrderId() 
    {
        return commodityOrderId;
    }
    public void setMoney(String money) 
    {
        this.money = money;
    }

    public String getMoney() 
    {
        return money;
    }
    public void setExtime(Date extime) 
    {
        this.extime = extime;
    }

    public Date getExtime() 
    {
        return extime;
    }
    public void setCargoUserId(Long cargoUserId) 
    {
        this.cargoUserId = cargoUserId;
    }

    public Long getCargoUserId() 
    {
        return cargoUserId;
    }
    public void setDel(Long del) 
    {
        this.del = del;
    }

    public Long getDel() 
    {
        return del;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("commodityOrderId", getCommodityOrderId())
            .append("money", getMoney())
            .append("extime", getExtime())
            .append("cargoUserId", getCargoUserId())
            .append("del", getDel())
            .toString();
    }
}
